<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<meta http-equiv="Content-Language" content="zh-cn">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>课程表</title>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style_admin.css">

	</head>
	<body>
		<form name="SearchForm" action="getStu_Info!getSubject" onsubmit="return check()"
			method="post">
			关键字查询：
			<input name="keyword" type="text"/>
			<input type="submit" value="查询" />
		</form>
		<form action="changePage" method="post">
			<table cellspacing="1" cellpadding="4" width="100%"
				class="tableborder" id="table3">
				<tr>
					<td colspan="11" class="header">
						<blockquote>
							课程信息
						</blockquote>
					</td>
				</tr>
				<tr>
					<td align="center" class="altbg1">
						<b>编号</b>
					</td>
					<td align="center" class="altbg1">
						<b>课程名称</b>
					</td>
					<td align="center" class="altbg1">
						<b>上课班级</b>
					</td>
					<td align="center" class="altbg1">
						<b>课室</b>
					</td>
					<td align="center" class="altbg1">
						<b>课时</b>
					</td>
					<td align="center" class="altbg1">
						<b>周期数</b>
					</td>
					<td align="center" class="altbg1">
						<b>课程类型</b>
					</td>
					<td align="center" class="altbg1">
						<b>备注</b>
					</td>
					<td align="center" class="altbg1">
						<b>修改</b>
					</td>
					<td align="center" class="altbg1">
						<b>删除</b>
					</td>
				</tr>

				<tr>
					<td>
						<s:if test="subjcetList.size==0">没有此记录!</s:if>
					</td>
				</tr>
				<s:iterator value="subjcetList">
					<tr>
						<td align="center" class="altbg1">
							<b><s:property value="id" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="subName" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="classInfo.className" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="arrange.classRoom" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="hours" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="timesWeek" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b> <s:if test="typeId==0">必修</s:if> <s:else>选修</s:else> </b>
						</td>
						<td align="center" class="altbg1">
							<b><s:property value="memo" /> </b>
						</td>
						<td align="center" class="altbg1">
							<b><a
								href="updateInfo!getSubjectInfoById?uId=<s:property value="id"/>">修改</a>
							</b>
						</td>
						<td align="center" class="altbg1">
							<b><a
								href="deleteInfo!deleteSubjectById?dId=<s:property value="id"/>">删除</a>
							</b>
						</td>
					</tr>
				</s:iterator>

			</table>
		</form>
	</body>

</html>
